import 'package:json_annotation/json_annotation.dart';

part 'base_model.g.dart';

@JsonSerializable()
class BaseModel {
  @JsonKey(name: 'success')
  bool? success;
  
  @JsonKey(name: 'type')
  String? type;
  
  @JsonKey(name: 'url')
  String? url;

  BaseModel({this.success, this.type, this.url});

  factory BaseModel.fromJson(Map<String, dynamic> json) => _$BaseModelFromJson(json);

  Map<String, dynamic> toJson() => _$BaseModelToJson(this);
}
